import myaxios from "../MyAxios";
import URLENV from "@/http/BaseUrl";
const JSFURL = URLENV.JSFURL;

const CourseApi={
    /** 列出课程列表 */
    courseList(){
        let url=JSFURL+"/video/video_list"
        return myaxios.get(url)
    },

    /** 模糊查询课程 */
    querycourseByName(params){
        let url=JSFURL+"/video/videoby_name"
        return myaxios.get(url,params)
    },

    /** 删除课程 */
    courseDelete(params){
        let url=JSFURL+"/video/video_del"
        return myaxios.get(url,params)
    },

    /** 修改课程 */
    update(params){
        let url=JSFURL+"/video/video_update"
        return myaxios.post(url,params)
    },

    /** 通过id查询课程信息 */
    queryById(params){
        let url=JSFURL+"/video/video_id"
        return myaxios.get(url,params)
    },

    /** 新增课程 */
    queryAdd(params){
        let url=JSFURL+"/video/video_add"
        return myaxios.post(url,params)
    }
}

export default CourseApi